package com.yangaobo.service;

import com.github.pagehelper.PageInfo;
import com.yangaobo.dto.SchoolInsertDTO;
import com.yangaobo.dto.SchoolPageDTO;
import com.yangaobo.dto.SchoolUpdateDTO;
import com.yangaobo.entity.School;
import com.yangaobo.excel.SchoolExcel;

import java.util.List;

/**
 * @author 杨奥博
 */
public interface SchoolService {
    int insert(SchoolInsertDTO schoolInsertDTO);

    School select(Long id);

    List<School> list();

    PageInfo<School> page(SchoolPageDTO dto);

    int update(SchoolUpdateDTO dto);

    int delete(Long id);

    int deleteBatch(List<Long> ids);

    List<SchoolExcel> getExcelData();

}
